import request from '@/utils/request'

/**
 * @description: 获取厂内生产入库列表
 * @param {*} params
 */
export function getInPlantFQCReportList(params) {
  return request({
    url: '/inPlantFQC/report/list',
    params
  })
}

/**
 * @description: 获取厂内生产入库报告ID
 * @param {*} params
 */
export function getInPlantFQCReportID(params) {
  return request({
    url: '/inPlantFQC/report/reportid',
    params
  })
}

/**
 * @description: 新增厂内生产入库报告
 * @param {*} data
 */
export function addInPlantFQCReport(data) {
  return request({
    url: '/inPlantFQC/report/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取厂内生产入库报告详情
 * @param {*} params
 */

export function getInPlantFQCReportDetail(params) {
  return request({
    url: '/inPlantFQC/report/detail',
    params
  })
}

/**
 * @description: 更新厂内生产入库报告
 * @param {*} data
 */
export function updatenPlantFQCReport(data) {
  return request({
    url: '/inPlantFQC/report/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除厂内生产入库报告
 * @param {*} data
 */

export function deleteInPlantFQCReport(data) {
  return request({
    url: '/inPlantFQC/report/delete',
    method: 'post',
    data
  })
}
